home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-11-05 | 1.4 KB | 49 lines | [TEXT/MPWi] |
- # R E S E D I T I N S T A L L A T I O N S C R I P T
- #
- # Copyright Apple Computer, Inc. 1990 - All rights reserved.
- #
- #
- # This script is used to install either ResEdit 1.2, 2.0b2 or 2.1b5 from the
- # E.T.O. #2 distribution compact disk into a folder called "ResEdit Folder"
- # on the destination hard disk.
- #
- # Options: None
- #
- # This script makes use of the following Shell variables:
- #
- # {CDVolume} - the name of the CD Distribution volume
- #
- # {DestVolume} - the name of the volume from which the Installer was launched
- #
- # {ResEditOption} - a flag used to indicate which version of ResEdit to install
- #
-
-
- If "{ResEditOption}" == "1" ### install ResEdit 1.2
- set Source "{CDVolume}Tools - Objects:ResEdit:ResEdit 1.2:"
- Else If "{ResEditOption}" == "2" ### install ResEdit 2.0b2
- set Source "{CDVolume}Tools - Objects:ResEdit:ResEdit 2.0b2:"
- Else If "{ResEditOption}" == "3" ### install ResEdit 2.1b5
- set Source "{CDVolume}Tools - Objects:ResEdit:ResEdit 2.1b5:"
- Else
- Exit 1
- End
-
-
-
- ### See if a folder called "ResEdit Folder" already exists,
- ### if so, rename it to "ResEdit Folder.Old"
-
- if "`Exists -d "{DestVolume}ResEdit Folder"`"
- if "`Exists -d "{DestVolume}ResEdit Folder.Old"`"
- Delete -y "{DestVolume}ResEdit Folder.Old"
- End
-
- Rename -y "{DestVolume}ResEdit Folder" "{DestVolume}ResEdit Folder.Old"
- End
-
- Duplicate -y "{Source}" "{DestVolume}ResEdit Folder:"
-
- ### That's It!
-
- Exit 0